package com.amigo.online.provider.ffmpeg.rocketmq.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.amigo.online.common.param.common.MqTag;
import org.springframework.stereotype.Component;

@ConfigurationProperties("rmq")
@Component
public class RocketMqProperties {

    public static final String DEFAULT = "defaultMQProducer";

    public static final String TRANS = "transactionMQProducer";


    public static final String DEFAULT_TOPIC = "online_default_topic";

    public static final String ORDER_TOPIC = "online_order_topic";

    public static final String TAG = MqTag.FFMPEG;

    /**
     * 普通生产者
     */
    public static final String DEFAULT_PRODUCER = "online_default_ffmpeg_producer";

    public static final String TRANSACTION_PRODUCER = "online_transaction_ffmpeg_producer";

    /**
     * 普通消费者
     */
    public static final String DEFAULT_CONSUMER = "online_default_ffmpeg_consumer";

    /**
     * 顺序消费者
     */
    public static final String ORDER_CONSUMER = "online_order_ffmpeg_onsumer";

    private String namesrvAddr = "192.168.10.223:9876";

    public String getNamesrvAddr() {
        return namesrvAddr;
    }

    public void setNamesrvAddr(String namesrvAddr) {
        this.namesrvAddr = namesrvAddr;
    }
}
